import java.util.Scanner;

public class third {

    public static void main(String[] args) {
        // write your code here
//        3. 编程题 使用双重循环实现五子棋游戏棋盘的绘制
        for (int i = 0; i < 17; i++) {
            for (int j = 0; j < 17; j++) {
                if (i == 0){
                    //第一行
                    int flag = j-1;
                    if (j>10){
                        //转ascii码
                        flag = j+86;
                        System.out.print((char)flag + "  ");
                    }else{
                        if (j == 0){
                            //空出第一个字符
                            System.out.print("   ");
                        }else{
                            System.out.print(flag + "  ");
                        }
                    }
                }else{
                    if (j == 0){
                        //第一列
                        int flag = i-1;
                        if (i>10){
                            //转ascii码
                            flag = i+86;
                            System.out.print((char)flag + "  ");
                        }else{
                            System.out.print(flag+"  ");
                        }
                    }else{
                        System.out.print("+  ");
                    }
                }
            }
            System.out.println("");
        }
    }
}
